package sysu.el.array.ints.algors;

public class InOrder {
	static public boolean asc(int num, int a[]){
		for (int i=1; i<num; i++)
			if (a[i-1] > a[i])
				return false;
		return true;
	}
	
	static public boolean des(int num, int a[]){
		for (int i=1; i<num; i++)
			if (a[i-1] < a[i])
				return false;
		return true;
	}
}
